diff options
author | Chris Lattner <sabre@nondot.org> | 2011-04-18 07:00:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-04-18 07:00:40 +0000 |
commit | 48f75ad67813037ea12d5d10d887ef1014d9c307 (patch) | |
tree | 5632def2d2cedc702d2505ddb664f478a99be9e6 /llvm/test/CodeGen/X86/fast-isel-x86-64.ll | |
parent | 562d6e82bdd5d7f3554c60709306e897b59d4f09 (diff) | |
download | bcm5719-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.ll | 8 |
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, +} + |