summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/avx512-inc-dec.ll
blob: 4fa4f27beb7982888e17200ccba6edf537c1bf26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; 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
}

OpenPOWER on IntegriCloud