summaryrefslogtreecommitdiffstats
path: root/llvm/test/Integer/fold-fpcast_bt.ll
diff options
context:
space:
mode:
authorZhou Sheng <zhousheng00@gmail.com>2007-01-19 14:30:59 +0000
committerZhou Sheng <zhousheng00@gmail.com>2007-01-19 14:30:59 +0000
commitee187be5cac70bace7da8624c93adcce26dc92bb (patch)
tree3b09a6c88b818b22fcdda032cb1e45d16a5a84f9 /llvm/test/Integer/fold-fpcast_bt.ll
parenta335d27e2b3a7c1e2da1304b4439605c11efceb2 (diff)
downloadbcm5719-llvm-ee187be5cac70bace7da8624c93adcce26dc92bb.tar.gz
bcm5719-llvm-ee187be5cac70bace7da8624c93adcce26dc92bb.zip
Cover non-byte-width BATs situation.
llvm-svn: 33356
Diffstat (limited to 'llvm/test/Integer/fold-fpcast_bt.ll')
-rw-r--r--llvm/test/Integer/fold-fpcast_bt.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/Integer/fold-fpcast_bt.ll b/llvm/test/Integer/fold-fpcast_bt.ll
index 71823ab1461..d1453c4ec7a 100644
--- a/llvm/test/Integer/fold-fpcast_bt.ll
+++ b/llvm/test/Integer/fold-fpcast_bt.ll
@@ -16,3 +16,18 @@ define double %test4() {
ret double bitcast (i64 42 to double)
}
+define i30 %test5() {
+ ret i30 fptoui(float 3.7 to i30)
+}
+
+define float %test6() {
+ ret float uitofp(i30 17 to float)
+}
+
+define i6 %test7() {
+ ret i6 bitcast (double 3.1415926 to i6)
+}
+
+define double %test8() {
+ ret double bitcast (i9 42 to double)
+}
OpenPOWER on IntegriCloud