| OLD | NEW |
| 1 ; Test if we can read alloca instructions. | 1 ; Test if we can read alloca instructions. |
| 2 | 2 |
| 3 ; REQUIRES: allow_dump | |
| 4 | |
| 5 ; RUN: %p2i -i %s --insts | FileCheck %s | 3 ; RUN: %p2i -i %s --insts | FileCheck %s |
| 6 ; RUN: %if --need=allow_disable_ir_gen --command \ | 4 ; RUN: %if --need=allow_disable_ir_gen --command \ |
| 7 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \ | 5 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \ |
| 8 ; RUN: | %if --need=allow_disable_ir_gen --command \ | 6 ; RUN: | %if --need=allow_disable_ir_gen --command \ |
| 9 ; RUN: FileCheck --check-prefix=NOIR %s | 7 ; RUN: FileCheck --check-prefix=NOIR %s |
| 10 | 8 |
| 11 ; Show examples where size is defined by a constant. | 9 ; Show examples where size is defined by a constant. |
| 12 | 10 |
| 13 define i32 @AllocaA0Size1() { | 11 define i32 @AllocaA0Size1() { |
| 14 entry: | 12 entry: |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 %array = alloca i8, i32 %n, align 16 | 158 %array = alloca i8, i32 %n, align 16 |
| 161 %addr = ptrtoint i8* %array to i32 | 159 %addr = ptrtoint i8* %array to i32 |
| 162 ret i32 %addr | 160 ret i32 %addr |
| 163 | 161 |
| 164 ; CHECK: entry: | 162 ; CHECK: entry: |
| 165 ; CHECK-NEXT: %array = alloca i8, i32 %n, align 16 | 163 ; CHECK-NEXT: %array = alloca i8, i32 %n, align 16 |
| 166 ; CHECK-NEXT: ret i32 %array | 164 ; CHECK-NEXT: ret i32 %array |
| 167 } | 165 } |
| 168 | 166 |
| 169 ; NOIR: Total across all functions | 167 ; NOIR: Total across all functions |
| OLD | NEW |