| OLD | NEW |
| 1 ; This tests the NaCl intrinsics not related to atomic operations. | 1 ; This tests the NaCl intrinsics not related to atomic operations. |
| 2 | 2 |
| 3 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ | 3 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ |
| 4 ; RUN: --target x8632 --sandbox -i %s --args -O2 \ | 4 ; RUN: --target x8632 --sandbox -i %s --args -O2 \ |
| 5 ; RUN: -allow-externally-defined-symbols \ | 5 ; RUN: -allow-externally-defined-symbols \ |
| 6 ; RUN: | %if --need=target_X8632 --command FileCheck %s | 6 ; RUN: | %if --need=target_X8632 --command FileCheck %s |
| 7 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ | 7 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ |
| 8 ; RUN: --target x8632 --sandbox -i %s --args -Om1 \ | 8 ; RUN: --target x8632 --sandbox -i %s --args -Om1 \ |
| 9 ; RUN: -allow-externally-defined-symbols \ | 9 ; RUN: -allow-externally-defined-symbols \ |
| 10 ; RUN: | %if --need=target_X8632 --command FileCheck %s | 10 ; RUN: | %if --need=target_X8632 --command FileCheck %s |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 Zero: | 329 Zero: |
| 330 call void @llvm.trap() | 330 call void @llvm.trap() |
| 331 unreachable | 331 unreachable |
| 332 NonZero: | 332 NonZero: |
| 333 ret i32 1 | 333 ret i32 1 |
| 334 } | 334 } |
| 335 ; CHECK-LABEL: test_trap | 335 ; CHECK-LABEL: test_trap |
| 336 ; CHECK: ud2 | 336 ; CHECK: ud2 |
| 337 ; ARM32-LABEL: test_trap | 337 ; ARM32-LABEL: test_trap |
| 338 ; ARM32: .word 0xe7fedef0 | 338 ; ARM32: .word 0xe7fedef0 |
| 339 ; MIPS32-LABEL: test_trap |
| 340 ; MIPS32: teq zero,zero |
| 339 | 341 |
| 340 define internal i32 @test_bswap_16(i32 %x) { | 342 define internal i32 @test_bswap_16(i32 %x) { |
| 341 entry: | 343 entry: |
| 342 %x_trunc = trunc i32 %x to i16 | 344 %x_trunc = trunc i32 %x to i16 |
| 343 %r = call i16 @llvm.bswap.i16(i16 %x_trunc) | 345 %r = call i16 @llvm.bswap.i16(i16 %x_trunc) |
| 344 %r_zext = zext i16 %r to i32 | 346 %r_zext = zext i16 %r to i32 |
| 345 ret i32 %r_zext | 347 ret i32 %r_zext |
| 346 } | 348 } |
| 347 ; CHECK-LABEL: test_bswap_16 | 349 ; CHECK-LABEL: test_bswap_16 |
| 348 ; Make sure this is the right operand size so that the most significant bit | 350 ; Make sure this is the right operand size so that the most significant bit |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 ; CHECK: lea {{.*}},[esp+0x10] | 600 ; CHECK: lea {{.*}},[esp+0x10] |
| 599 ; CHECK: lea {{.*}},[esp+0x10] | 601 ; CHECK: lea {{.*}},[esp+0x10] |
| 600 ; CHECK: call | 602 ; CHECK: call |
| 601 ; CHECK: mov esp,{{.*}} | 603 ; CHECK: mov esp,{{.*}} |
| 602 ; CHECK: mov esp,ebp | 604 ; CHECK: mov esp,ebp |
| 603 ; ARM32-LABEL: test_stacksave_multiple | 605 ; ARM32-LABEL: test_stacksave_multiple |
| 604 ; ARM32: mov {{.*}}, sp | 606 ; ARM32: mov {{.*}}, sp |
| 605 ; ARM32: mov {{.*}}, sp | 607 ; ARM32: mov {{.*}}, sp |
| 606 ; ARM32: mov {{.*}}, sp | 608 ; ARM32: mov {{.*}}, sp |
| 607 ; ARM32: mov sp, {{.*}} | 609 ; ARM32: mov sp, {{.*}} |
| OLD | NEW |