File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
tests/run-make/x86_64-fortanix-unknown-sgx-lvi Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 11CHECK: 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 11CHECK: print
22CHECK: lfence
33CHECK: popq
4+ CHECK: popq
45CHECK-NEXT: popq [[REGISTER:%[a-z]+]]
56CHECK-NEXT: lfence
67CHECK-NEXT: jmpq *[[REGISTER]]
Original file line number Diff line number Diff 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/
You can’t perform that action at this time.
0 commit comments