File tree 3 files changed +10
-3
lines changed
tests/run-make/x86_64-fortanix-unknown-sgx-lvi
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
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 number Diff line number Diff line change 1
1
CHECK: print
2
2
CHECK: lfence
3
3
CHECK: popq
4
+ CHECK: popq
4
5
CHECK-NEXT: popq [[REGISTER:%[a-z]+]]
5
6
CHECK-NEXT: lfence
6
7
CHECK-NEXT: jmpq *[[REGISTER]]
Original file line number Diff line number Diff line change @@ -34,8 +34,9 @@ function check {
34
34
${enclave} > ${asm}
35
35
${filecheck} --input-file ${asm} ${checks}
36
36
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
39
40
# The assembler cannot avoid explicit `ret` instructions. Sequences
40
41
# of `shlq $0x0, (%rsp); lfence; retq` are used instead.
41
42
# https://www.intel.com/content/www/us/en/developer/articles/technical/
You can’t perform that action at this time.
0 commit comments