summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-05-27 04:20:05 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-05-27 04:20:05 +0000
commitbdef5df44e59e941e71e16eebd2001b38e22e901 (patch)
tree26fbb16c2eeae90b6ba20d091f1e65895b37000b /clang/test
parent3e113409cb69ad9bc10224c333e47dc8395caef9 (diff)
downloadbcm5719-llvm-bdef5df44e59e941e71e16eebd2001b38e22e901.tar.gz
bcm5719-llvm-bdef5df44e59e941e71e16eebd2001b38e22e901.zip
Generalize the float type generation code, and specifically fix the
codegen of X86 long double. llvm-svn: 51578
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGen/long-double-x86.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGen/long-double-x86.c b/clang/test/CodeGen/long-double-x86.c
new file mode 100644
index 00000000000..88ac0c9268c
--- /dev/null
+++ b/clang/test/CodeGen/long-double-x86.c
@@ -0,0 +1,4 @@
+// RUN: clang %s -emit-llvm -o - -triple=i686-apple-darwin9 | grep x86_fp80
+
+long double x = 0;
+int checksize[sizeof(x) == 12 ? 1 : -1];
OpenPOWER on IntegriCloud