diff options
author | Chris Lattner <sabre@nondot.org> | 2011-04-18 06:55:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-04-18 06:55:51 +0000 |
commit | 090ca9108b35a60e8b97b67987d00cf47a383dba (patch) | |
tree | b01a1dd485fcd75979a7ccd70578b6616d181018 /test | |
parent | 202a7a1e3fa661bf78b98d77de7e2d575facd9ee (diff) | |
download | external_llvm-090ca9108b35a60e8b97b67987d00cf47a383dba.zip external_llvm-090ca9108b35a60e8b97b67987d00cf47a383dba.tar.gz external_llvm-090ca9108b35a60e8b97b67987d00cf47a383dba.tar.bz2 |
fix rdar://9297011 - udiv by power of two causing fast-isel rejects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129693 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/fast-isel-x86-64.ll | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/CodeGen/X86/fast-isel-x86-64.ll b/test/CodeGen/X86/fast-isel-x86-64.ll index b666e84..dbf65f0 100644 --- a/test/CodeGen/X86/fast-isel-x86-64.ll +++ b/test/CodeGen/X86/fast-isel-x86-64.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -fast-isel -O0 -regalloc=fast -asm-verbose=0 | FileCheck %s +; RUN: llc < %s -fast-isel -O0 -regalloc=fast -asm-verbose=0 -fast-isel-abort | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" target triple = "x86_64-apple-darwin10.0.0" @@ -111,3 +111,11 @@ entry: ; CHECK: test9: ; CHECK: imulq $7, %rdi, %rax } + +; rdar://9297011 - Don't reject udiv by a power of 2. +define i32 @test10(i32 %X) nounwind { + %Y = udiv i32 %X, 8 + ret i32 %Y +; CHECK: test10: +; CHECK: shrl $3, +} |