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/CodeGen/Generic/2005-10-21-longlonggtu.ll b/test/CodeGen/Generic/2005-10-21-longlonggtu.ll
new file mode 100644
index 0000000..d445e59
--- /dev/null
+++ b/test/CodeGen/Generic/2005-10-21-longlonggtu.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc
+float %t(long %u_arg) {
+ %u = cast long %u_arg to ulong ; <ulong> [#uses=1]
+ %tmp5 = add ulong %u, 9007199254740991 ; <ulong> [#uses=1]
+ %tmp = setgt ulong %tmp5, 18014398509481982 ; <bool> [#uses=1]
+ br bool %tmp, label %T, label %F
+T:
+ ret float 1.0
+F:
+ call float %t(long 0)
+ ret float 0.0
+}