summaryrefslogtreecommitdiff
path: root/test/CodeGen/attr-mrecip.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/attr-mrecip.c')
-rw-r--r--test/CodeGen/attr-mrecip.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/attr-mrecip.c b/test/CodeGen/attr-mrecip.c
new file mode 100644
index 0000000000000..954c57ae102b1
--- /dev/null
+++ b/test/CodeGen/attr-mrecip.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -mrecip=!sqrtf,vec-divf:3 -emit-llvm %s -o - | FileCheck %s
+
+int baz(int a) { return 4; }
+
+// CHECK: baz{{.*}} #0
+// CHECK: #0 = {{.*}}"reciprocal-estimates"="!sqrtf,vec-divf:3"
+