[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/div.ll
Reid Spencer
reid at x10sys.com
Wed Oct 25 23:16:28 PDT 2006
Changes in directory llvm/test/Regression/Transforms/InstCombine:
div.ll updated: 1.12 -> 1.13
---
Log message:
For PR950: http://llvm.org/PR950 :
Make necessary changes to support DIV -> [SUF]Div. This changes llvm to
have three division instructions: signed, unsigned, floating point. The
bytecode and assembler are bacwards compatible, however.
---
Diffs of the changes: (+5 -6)
div.ll | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
Index: llvm/test/Regression/Transforms/InstCombine/div.ll
diff -u llvm/test/Regression/Transforms/InstCombine/div.ll:1.12 llvm/test/Regression/Transforms/InstCombine/div.ll:1.13
--- llvm/test/Regression/Transforms/InstCombine/div.ll:1.12 Sun Feb 5 01:52:47 2006
+++ llvm/test/Regression/Transforms/InstCombine/div.ll Thu Oct 26 01:15:43 2006
@@ -57,13 +57,12 @@
uint %test10(uint %X, bool %C) {
%V = select bool %C, uint 64, uint 8
- %R = div uint %X, %V
+ %R = udiv uint %X, %V
ret uint %R
}
-uint %test10(uint %X, ubyte %B) {
- %Amt = shl uint 32, ubyte %B
- %V = div uint %X, %Amt
- ret uint %V
+int %test11(int %X, bool %C) {
+ %A = select bool %C, int 1024, int 32
+ %B = udiv int %X, %A
+ ret int %B
}
-
More information about the llvm-commits
mailing list