f32dbaf0b2
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
14 lines
254 B
LLVM
14 lines
254 B
LLVM
; RUN: llc < %s -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
|
|
}
|
|
|