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: %llvm2ice -O2 --verbose none %s | FileCheck %s | 3 ; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s |
4 ; RUN: %llvm2ice -Om1 --verbose none %s | FileCheck %s | 4 ; RUN: %llvm2ice -Om1 --verbose none %s | FileCheck %s |
5 | 5 |
6 ; Do another run w/ O2 and a different check-prefix (otherwise O2 and Om1 | 6 ; Do another run w/ O2 and a different check-prefix (otherwise O2 and Om1 |
7 ; share the same "CHECK" prefix). This separate run helps check that | 7 ; share the same "CHECK" prefix). This separate run helps check that |
8 ; some code is optimized out. | 8 ; some code is optimized out. |
9 ; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s --check-prefix=CHECKO2REM | 9 ; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s --check-prefix=CHECKO2REM |
10 | 10 |
| 11 ; TODO: The next two lines cause this test to fail. |
| 12 ; RUIN: %llvm2ice -O2 --verbose none %s | llvm-mc -x86-asm-syntax=intel |
| 13 ; RUIN: %llvm2ice -Om1 --verbose none %s | llvm-mc -x86-asm-syntax=intel |
11 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s | 14 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s |
12 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s | 15 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s |
13 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ | 16 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ |
14 ; RUN: | FileCheck --check-prefix=DUMP %s | 17 ; RUN: | FileCheck --check-prefix=DUMP %s |
15 | 18 |
16 declare i8* @llvm.nacl.read.tp() | 19 declare i8* @llvm.nacl.read.tp() |
17 declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) | 20 declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) |
18 declare void @llvm.memmove.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) | 21 declare void @llvm.memmove.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) |
19 declare void @llvm.memset.p0i8.i32(i8*, i8, i32, i32, i1) | 22 declare void @llvm.memset.p0i8.i32(i8*, i8, i32, i32, i1) |
20 declare void @llvm.nacl.longjmp(i8*, i32) | 23 declare void @llvm.nacl.longjmp(i8*, i32) |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 } | 452 } |
450 ; CHECK-LABEL: test_stacksave_multiple | 453 ; CHECK-LABEL: test_stacksave_multiple |
451 ; At least 3 copies of esp, but probably more from having to do the allocas. | 454 ; At least 3 copies of esp, but probably more from having to do the allocas. |
452 ; CHECK: mov {{.*}}, esp | 455 ; CHECK: mov {{.*}}, esp |
453 ; CHECK: mov {{.*}}, esp | 456 ; CHECK: mov {{.*}}, esp |
454 ; CHECK: mov {{.*}}, esp | 457 ; CHECK: mov {{.*}}, esp |
455 ; CHECK: mov esp, {{.*}} | 458 ; CHECK: mov esp, {{.*}} |
456 | 459 |
457 ; ERRORS-NOT: ICE translation error | 460 ; ERRORS-NOT: ICE translation error |
458 ; DUMP-NOT: SZ | 461 ; DUMP-NOT: SZ |
OLD | NEW |