Krzysztof Parzyszek | 18484de | 2018-03-06 19:15:58 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=hexagon < %s |
Krzysztof Parzyszek | 167d918 | 2016-07-28 20:01:59 +0000 | [diff] [blame] | 2 | ; REQUIRES: asserts |
Krzysztof Parzyszek | 167d918 | 2016-07-28 20:01:59 +0000 | [diff] [blame] | 3 | target triple = "hexagon" |
| 4 | |
| 5 | ; Function Attrs: nounwind readnone |
| 6 | define i64 @foo() #0 { |
| 7 | entry: |
| 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 | |
| 15 | declare i32 @llvm.hexagon.S2.vsplatrb(i32) #0 |
| 16 | |
| 17 | attributes #0 = { nounwind readnone } |