aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/NVPTX/inline-asm.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/NVPTX/inline-asm.ll')
-rw-r--r--test/CodeGen/NVPTX/inline-asm.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/NVPTX/inline-asm.ll b/test/CodeGen/NVPTX/inline-asm.ll
new file mode 100644
index 0000000..d76eb42
--- /dev/null
+++ b/test/CodeGen/NVPTX/inline-asm.ll
@@ -0,0 +1,9 @@
+; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
+
+
+define float @test(float %x) {
+entry:
+; CHECK: ex2.approx.ftz.f32 %f{{[0-9]+}}, %f{{[0-9]+}}
+ %0 = call float asm "ex2.approx.ftz.f32 $0, $1;", "=f,f"(float %x)
+ ret float %0
+}