| OLD | NEW |
| 1 ; This is a test of C-level conversion operations that clang lowers | 1 ; This is a test of C-level conversion operations that clang lowers |
| 2 ; into pairs of shifts. | 2 ; into pairs of shifts. |
| 3 | 3 |
| 4 ; RUN: %p2i -i %s --no-local-syms --args -O2 --verbose none \ | 4 ; RUN: %p2i -i %s --no-local-syms --args -O2 --verbose none \ |
| 5 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ | 5 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
| 6 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 6 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
| 7 ; RUN: %p2i -i %s --no-local-syms --args -Om1 --verbose none \ | 7 ; RUN: %p2i -i %s --no-local-syms --args -Om1 --verbose none \ |
| 8 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ | 8 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
| 9 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 9 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
| 10 ; RUN: %p2i -i %s --no-local-syms --args --verbose none \ | 10 ; RUN: %p2i -i %s --no-local-syms --args --verbose none \ |
| 11 ; RUN: | FileCheck --check-prefix=ERRORS %s | 11 ; RUN: | FileCheck --check-prefix=ERRORS %s |
| 12 | 12 |
| 13 @i1 = internal global [4 x i8] zeroinitializer, align 4 | 13 @i1 = internal global [4 x i8] zeroinitializer, align 4 |
| 14 @i2 = internal global [4 x i8] zeroinitializer, align 4 | 14 @i2 = internal global [4 x i8] zeroinitializer, align 4 |
| 15 @u1 = internal global [4 x i8] zeroinitializer, align 4 | 15 @u1 = internal global [4 x i8] zeroinitializer, align 4 |
| 16 | 16 |
| 17 define void @conv1() { | 17 define void @conv1() { |
| 18 entry: | 18 entry: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 36 %v1 = ashr i32 %sext1, 16 | 36 %v1 = ashr i32 %sext1, 16 |
| 37 %__4 = bitcast [4 x i8]* @i2 to i32* | 37 %__4 = bitcast [4 x i8]* @i2 to i32* |
| 38 store i32 %v1, i32* %__4, align 1 | 38 store i32 %v1, i32* %__4, align 1 |
| 39 ret void | 39 ret void |
| 40 } | 40 } |
| 41 ; CHECK-LABEL: conv2 | 41 ; CHECK-LABEL: conv2 |
| 42 ; CHECK: shl {{.*}}, 16 | 42 ; CHECK: shl {{.*}}, 16 |
| 43 ; CHECK: sar {{.*}}, 16 | 43 ; CHECK: sar {{.*}}, 16 |
| 44 | 44 |
| 45 ; ERRORS-NOT: ICE translation error | 45 ; ERRORS-NOT: ICE translation error |
| OLD | NEW |