summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/fast-isel-x86-64.ll
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
commit48f75ad67813037ea12d5d10d887ef1014d9c307 (patch)
tree5632def2d2cedc702d2505ddb664f478a99be9e6 /llvm/test/CodeGen/X86/fast-isel-x86-64.ll
parent562d6e82bdd5d7f3554c60709306e897b59d4f09 (diff)
downloadbcm5719-llvm-48f75ad67813037ea12d5d10d887ef1014d9c307.tar.gz
bcm5719-llvm-48f75ad67813037ea12d5d10d887ef1014d9c307.zip
while we're at it, handle 'sdiv exact' of a power of 2 also,
this fixes a few rejects on c++ iterator loops. llvm-svn: 129694
Diffstat (limited to 'llvm/test/CodeGen/X86/fast-isel-x86-64.ll')
-rw-r--r--llvm/test/CodeGen/X86/fast-isel-x86-64.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel-x86-64.ll b/llvm/test/CodeGen/X86/fast-isel-x86-64.ll
index dbf65f0b3fc..bf886e079f6 100644
--- a/llvm/test/CodeGen/X86/fast-isel-x86-64.ll
+++ b/llvm/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,
+}
+
OpenPOWER on IntegriCloud