mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 06:38:44 +00:00
2bf22e30a5
Differential Review: https://reviews.llvm.org/D24660 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283727 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
324 B
LLVM
12 lines
324 B
LLVM
; RUN: llc %s -O0 -march=sparc -o - | FileCheck %s -check-prefix=NO_REPLACE_SDIV
|
|
; RUN: llc %s -O0 -march=sparc -mcpu=at697e -o - | FileCheck %s -check-prefix=REPLACE_SDIV
|
|
|
|
; REPLACE_SDIV: sdivcc %o0, %o1, %o0
|
|
; NO_REPLACE_SDIV: sdiv %o0, %o1, %o0
|
|
|
|
define i32 @lbr59(i32 %a, i32 %b)
|
|
{
|
|
%r = sdiv i32 %a, %b
|
|
ret i32 %r
|
|
}
|