skeleton check module level assembly
This commit is contained in:
parent
bca8e07ef4
commit
4d1d0c6bd7
@ -0,0 +1,16 @@
|
|||||||
|
// Test LVI load hardening on SGX module level assembly code
|
||||||
|
|
||||||
|
// assembly-output: emit-asm
|
||||||
|
// compile-flags: --crate-type staticlib
|
||||||
|
// only-x86_64-fortanix-unknown-sgx
|
||||||
|
|
||||||
|
#![feature(global_asm)]
|
||||||
|
|
||||||
|
global_asm!(".start_module_asm:
|
||||||
|
movq (%rdi), %rax
|
||||||
|
retq
|
||||||
|
.end_module_asm:" );
|
||||||
|
|
||||||
|
// CHECK: .start_module_asm
|
||||||
|
// TODO add check, when module-level pass is corrected
|
||||||
|
// CHECK: .end_module_asm
|
Loading…
x
Reference in New Issue
Block a user