| OLD | NEW |
| 1 ; Test if we can read alloca instructions. | 1 ; Test if we can read alloca instructions. |
| 2 | 2 |
| 3 ; RUN: llvm-as < %s | pnacl-freeze -allow-local-symbol-tables \ | 3 ; RUN: %p2i -i %s --insts | FileCheck %s |
| 4 ; RUN: | %llvm2ice -notranslate -verbose=inst -build-on-read \ | |
| 5 ; RUN: -allow-pnacl-reader-error-recovery \ | |
| 6 ; RUN: -allow-local-symbol-tables \ | |
| 7 ; RUN: | FileCheck %s | |
| 8 | 4 |
| 9 ; Show examples where size is defined by a constant. | 5 ; Show examples where size is defined by a constant. |
| 10 | 6 |
| 11 define i32 @AllocaA0Size1() { | 7 define i32 @AllocaA0Size1() { |
| 12 entry: | 8 entry: |
| 13 %array = alloca i8, i32 1 | 9 %array = alloca i8, i32 1 |
| 14 %addr = ptrtoint i8* %array to i32 | 10 %addr = ptrtoint i8* %array to i32 |
| 15 ret i32 %addr | 11 ret i32 %addr |
| 16 | 12 |
| 17 ; CHECK: entry: | 13 ; CHECK: entry: |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 define i32 @AllocaVarsizeA16(i32 %n) { | 152 define i32 @AllocaVarsizeA16(i32 %n) { |
| 157 entry: | 153 entry: |
| 158 %array = alloca i8, i32 %n, align 16 | 154 %array = alloca i8, i32 %n, align 16 |
| 159 %addr = ptrtoint i8* %array to i32 | 155 %addr = ptrtoint i8* %array to i32 |
| 160 ret i32 %addr | 156 ret i32 %addr |
| 161 | 157 |
| 162 ; CHECK: entry: | 158 ; CHECK: entry: |
| 163 ; CHECK-NEXT: %array = alloca i8, i32 %n, align 16 | 159 ; CHECK-NEXT: %array = alloca i8, i32 %n, align 16 |
| 164 ; CHECK-NEXT: ret i32 %array | 160 ; CHECK-NEXT: ret i32 %array |
| 165 } | 161 } |
| OLD | NEW |