summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/xray-attribute-instrumentation.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/xray-attribute-instrumentation.ll')
-rw-r--r--test/CodeGen/X86/xray-attribute-instrumentation.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/xray-attribute-instrumentation.ll b/test/CodeGen/X86/xray-attribute-instrumentation.ll
new file mode 100644
index 0000000000000..9e2d8934e98f4
--- /dev/null
+++ b/test/CodeGen/X86/xray-attribute-instrumentation.ll
@@ -0,0 +1,13 @@
+; RUN: llc -filetype=asm -o - -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
+
+define i32 @foo() nounwind noinline uwtable "function-instrument"="xray-always" {
+; CHECK-LABEL: Lxray_sled_0:
+; CHECK-NEXT: .p2align 2, 0x90
+; CHECK-NEXT: .ascii "\353\t"
+; CHECK-NEXT: nopw 512(%rax,%rax)
+; CHECK-LABEL: Ltmp0:
+ ret i32 0
+; CHECK-LABEL: Lxray_sled_1:
+; CHECK-NEXT: retq
+; CHECK-NEXT: nopw %cs:512(%rax,%rax)
+}