blob: 3205bad487b07b777079c6098bae3e4f9383c6d7 [file] [log] [blame]
Krzysztof Parzyszek046090d2018-03-12 14:01:28 +00001; RUN: llc -march=hexagon < %s | FileCheck %s
2; CHECK: r{{[0-9:]+}} = #0
3
4; Function Attrs: nounwind readnone
5define i32 @f0() #0 {
6b0:
7 %v0 = tail call i64 @llvm.hexagon.S2.extractup(i64 -1, i32 0, i32 1)
8 %v1 = trunc i64 %v0 to i32
9 ret i32 %v1
10}
11
12; Function Attrs: nounwind readnone
13declare i64 @llvm.hexagon.S2.extractup(i64, i32, i32) #0
14
15attributes #0 = { nounwind readnone }