blob: c30cac01546722604d787e80c772da64f7a897f4 [file] [log] [blame]
Krzysztof Parzyszek18484de2018-03-06 19:15:58 +00001; RUN: llc -march=hexagon < %s
Krzysztof Parzyszek167d9182016-07-28 20:01:59 +00002; REQUIRES: asserts
Krzysztof Parzyszek167d9182016-07-28 20:01:59 +00003target triple = "hexagon"
4
5; Function Attrs: nounwind readnone
6define i64 @foo() #0 {
7entry:
8 %0 = tail call i32 @llvm.hexagon.S2.vsplatrb(i32 255)
9 %conv = zext i32 %0 to i64
10 %shl = shl nuw i64 %conv, 32
11 %or = or i64 %shl, %conv
12 ret i64 %or
13}
14
15declare i32 @llvm.hexagon.S2.vsplatrb(i32) #0
16
17attributes #0 = { nounwind readnone }