summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/mips64-f128-literal.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/mips64-f128-literal.c')
-rw-r--r--clang/test/CodeGen/mips64-f128-literal.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGen/mips64-f128-literal.c b/clang/test/CodeGen/mips64-f128-literal.c
new file mode 100644
index 0000000..2f01520
--- /dev/null
+++ b/clang/test/CodeGen/mips64-f128-literal.c
@@ -0,0 +1,9 @@
+// RUN: %clang -target mips64el-unknown-linux -ccc-clang-archs mips64el -O3 -S -mabi=n64 -o - -emit-llvm %s | FileCheck %s
+
+typedef long double LD;
+
+// CHECK: ret fp128
+
+LD foo0() {
+ return 2.625L;
+}