Skip to content

Commit 210130a

Browse files
committed
Fix LVI tests after making frame pointers enabled by default
1 parent 9afdb8d commit 210130a

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
CHECK: cmake_plus_one_cxx_global_asm
2-
CHECK: lfence
2+
CHECK-NEXT: movl
3+
CHECK-NEXT: lfence
4+
CHECK-NEXT: incl
5+
CHECK-NEXT: shlq $0x0, (%rsp)
6+
CHECK-NEXT: lfence
7+
CHECK-NEXT: retq
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
CHECK: print
22
CHECK: lfence
33
CHECK: popq
4+
CHECK: popq
45
CHECK-NEXT: popq [[REGISTER:%[a-z]+]]
56
CHECK-NEXT: lfence
67
CHECK-NEXT: jmpq *[[REGISTER]]

tests/run-make/x86_64-fortanix-unknown-sgx-lvi/script.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ function check {
3434
${enclave} > ${asm}
3535
${filecheck} --input-file ${asm} ${checks}
3636

37-
if [ "${func_re}" != "rust_plus_one_global_asm" &&
38-
"${func_re}" != "cmake_plus_one_c_global_asm" ]; then
37+
if [ "${func_re}" != "rust_plus_one_global_asm" ] &&
38+
[ "${func_re}" != "cmake_plus_one_c_global_asm" &&
39+
[ "${func_re}" != "cmake_plus_one_cxx_global_asm" ]; then
3940
# The assembler cannot avoid explicit `ret` instructions. Sequences
4041
# of `shlq $0x0, (%rsp); lfence; retq` are used instead.
4142
# https://www.intel.com/content/www/us/en/developer/articles/technical/

0 commit comments

Comments
 (0)