It's not necessary to do rounding for alloca operations when the requested
alignment is equal to the stack alignment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40004 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Integer/fold-fpcast_bt.ll b/test/Integer/fold-fpcast_bt.ll
new file mode 100644
index 0000000..c7e31b9
--- /dev/null
+++ b/test/Integer/fold-fpcast_bt.ll
@@ -0,0 +1,33 @@
+; RUN: llvm-as < %s | llvm-dis | not grep bitcast
+
+define i60 @test1() {
+ ret i60 fptoui(float 3.7 to i60)
+}
+
+define float @test2() {
+ ret float uitofp(i60 17 to float)
+}
+
+define i64 @test3() {
+ ret i64 bitcast (double 3.1415926 to i64)
+}
+
+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 i64 @test7() {
+ ret i64 bitcast (double 3.1415926 to i64)
+}
+
+define double @test8() {
+ ret double bitcast (i64 42 to double)
+}