add clobbers

This commit is contained in:
Connor Horman 2022-05-16 20:40:19 -04:00
parent 658be0d1cf
commit 50ce367880

View File

@ -6,6 +6,13 @@
use std::arch::asm;
// CHECK-LABEL: @avx512_clobber
// base: call void asm sideeffect inteldialect "", "~{tmm0}"()
#[no_mangle]
pub unsafe fn amx_clobber() {
asm!("", out("tmm0") _, options(nostack, nomem, preserves_flags));
}
// CHECK-LABEL: @avx512_clobber
// base: call void asm sideeffect inteldialect "", "~{xmm31}"()
// avx512: call float asm sideeffect inteldialect "", "=&{xmm31}"()