skeleton check module level assembly

This commit is contained in:
Raoul Strackx 2020-03-20 10:51:18 +01:00
parent bca8e07ef4
commit 4d1d0c6bd7

View File

@ -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