brintos

brintos / llvm-project-archived public Read only

0
0
Text · 418 B · db377ff Raw
22 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2 3define i32 @foo(i32 %a, i32 %b) nounwind readnone {4; CHECK: lsl5; CHECK: aslh6entry:7  %shl1 = shl i32 16, %a8  %shl2 = shl i32 %b, 169  %ret = mul i32 %shl1, %shl210  ret i32 %ret11}12 13define i32 @bar(i32 %a, i32 %b) nounwind readnone {14; CHECK: asrh15; CHECK: lsr16entry:17  %shl1 = ashr i32 16, %a18  %shl2 = ashr i32 %b, 1619  %ret = mul i32 %shl1, %shl220  ret i32 %ret21}22