summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-04-18 07:00:40 +0000
committerChris Lattner <sabre@nondot.org>2011-04-18 07:00:40 +0000
commitf051c1a29dd040b4b5ca0c5696d47a9058f87481 (patch)
treef55cd7f6174aa97971946740fd80743f45bde6f7 /test
parent090ca9108b35a60e8b97b67987d00cf47a383dba (diff)
downloadllvm-f051c1a29dd040b4b5ca0c5696d47a9058f87481.tar.gz
llvm-f051c1a29dd040b4b5ca0c5696d47a9058f87481.tar.bz2
llvm-f051c1a29dd040b4b5ca0c5696d47a9058f87481.tar.xz
while we're at it, handle 'sdiv exact' of a power of 2 also,
this fixes a few rejects on c++ iterator loops. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129694 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/fast-isel-x86-64.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fast-isel-x86-64.ll b/test/CodeGen/X86/fast-isel-x86-64.ll
index dbf65f0b3f..bf886e079f 100644
--- a/test/CodeGen/X86/fast-isel-x86-64.ll
+++ b/test/CodeGen/X86/fast-isel-x86-64.ll
@@ -119,3 +119,11 @@ define i32 @test10(i32 %X) nounwind {
; CHECK: test10:
; CHECK: shrl $3,
}
+
+define i32 @test11(i32 %X) nounwind {
+ %Y = sdiv exact i32 %X, 8
+ ret i32 %Y
+; CHECK: test11:
+; CHECK: sarl $3,
+}
+