blob: cc1f4ce55dad53f2bd6fa7c535253c5bf650fe2b [file] [log] [blame]
Krzysztof Parzyszek021151d2016-08-19 19:36:35 +00001; RUN: llc -march=hexagon < %s | FileCheck %s
2; CHECK: r[[REG0:[0-9]+]] = usr
3; CHECK: [[REG0]] = insert(r{{[0-9]+}}, #1, #16)
4
Krzysztof Parzyszek505eb492016-08-19 19:17:28 +00005target triple = "hexagon"
6
7define hidden void @fred() #0 {
8entry:
9 %0 = call { i32, i32 } asm sideeffect " $0 = usr\0A $1 = $2\0A $0 = insert($1, #1, #16)\0Ausr = $0 \0A", "=&r,=&r,r"(i1 undef) #1
10 ret void
11}
12
13attributes #0 = { nounwind "target-cpu"="hexagonv60" }
14attributes #1 = { nounwind }