mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
7c78d07dc3
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264706 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
268 B
LLVM
14 lines
268 B
LLVM
; RUN: llc < %s -march=x86-64 -mtriple=x86_64-apple-darwin -mcpu=knl | FileCheck %s
|
|
|
|
;CHECK-LABEL: test
|
|
;CHECK-NOT: dec
|
|
;CHECK-NOT: enc
|
|
;CHECK: ret
|
|
define i32 @test(i32 %a, i32 %b) {
|
|
%a1 = add i32 %a, -1
|
|
%b1 = add i32 %b, 1
|
|
%res = mul i32 %a1, %b1
|
|
ret i32 %res
|
|
}
|
|
|