Skip to content

Commit a608e50

Browse files
authored
Rollup merge of rust-lang#109661 - fortanix:raoul/EDP-107-fix_lvi_mitigation_tests_llvm_16, r=cuviper
Fix LVI test post LLVM 16 update rust-lang#109474 updated LLVM to 16. This causes the LVI mitigation tests for the `x86_64-fortanix-unknown-sgx` platform to fail. This PR fixes those tests again. cc: `@jethrogb`
2 parents eee3f48 + 64927b9 commit a608e50

7 files changed

+7
-7
lines changed

tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_asm.checks

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ CHECK: cc_plus_one_asm
22
CHECK-NEXT: movl
33
CHECK-NEXT: lfence
44
CHECK-NEXT: incl
5-
CHECK-NEXT: shlq $0, (%rsp)
5+
CHECK-NEXT: shlq $0x0, (%rsp)
66
CHECK-NEXT: lfence
77
CHECK-NEXT: retq

tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_c_asm.checks

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CHECK: lfence
66
CHECK: lfence
77
CHECK-NEXT: incl
88
CHECK-NEXT: jmp
9-
CHECK-NEXT: shlq $0, (%rsp)
9+
CHECK-NEXT: shlq $0x0, (%rsp)
1010
CHECK-NEXT: lfence
1111
CHECK-NEXT: retq
1212
CHECK: popq

tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_cxx_asm.checks

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CHECK: lfence
77
CHECK: lfence
88
CHECK-NEXT: incl
99
CHECK-NEXT: jmp 0x{{[[:xdigit:]]+}} <cc_plus_one_cxx_asm+0x{{[[:xdigit:]]+}}>
10-
CHECK-NEXT: shlq $0, (%rsp)
10+
CHECK-NEXT: shlq $0x0, (%rsp)
1111
CHECK-NEXT: lfence
1212
CHECK-NEXT: retq
1313
CHECK: popq

tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_asm.checks

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ CHECK: cmake_plus_one_asm
22
CHECK-NEXT: movl
33
CHECK-NEXT: lfence
44
CHECK-NEXT: incl
5-
CHECK-NEXT: shlq $0, (%rsp)
5+
CHECK-NEXT: shlq $0x0, (%rsp)
66
CHECK-NEXT: lfence
77
CHECK-NEXT: retq

tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_c_asm.checks

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CHECK: movl
77
CHECK: lfence
88
CHECK-NEXT: incl
99
CHECK-NEXT: jmp 0x{{[[:xdigit:]]+}} <cmake_plus_one_c_asm+0x{{[[:xdigit:]]+}}>
10-
CHECK-NEXT: shlq $0, (%rsp)
10+
CHECK-NEXT: shlq $0x0, (%rsp)
1111
CHECK-NEXT: lfence
1212
CHECK-NEXT: retq
1313
CHECK: popq

tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_cxx_asm.checks

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CHECK: movl
77
CHECK: lfence
88
CHECK-NEXT: incl
99
CHECK-NEXT: jmp 0x{{[[:xdigit:]]+}} <cmake_plus_one_cxx_asm+0x{{[[:xdigit:]]+}}>
10-
CHECK-NEXT: shlq $0, (%rsp)
10+
CHECK-NEXT: shlq $0x0, (%rsp)
1111
CHECK-NEXT: lfence
1212
CHECK-NEXT: retq
1313
CHECK: popq
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CHECK: unw_getcontext
22
CHECK: lfence
33
CHECK: lfence
4-
CHECK: shlq $0, (%rsp)
4+
CHECK: shlq $0x0, (%rsp)
55
CHECK-NEXT: lfence
66
CHECK-NEXT: retq

0 commit comments

Comments
 (0)