blob: 42eed97786cd4c7f526309292d568674f3c9f06d [file] [log] [blame]
Krzysztof Parzyszek33fd0bb2017-02-28 23:27:33 +00001; RUN: llc -march=hexagon -hexbit-extract=0 < %s | FileCheck %s
Krzysztof Parzyszek04c07962016-08-04 17:56:19 +00002
3; Make sure we don't generate zxtb to transfer a predicate register into
4; a general purpose register.
5
6; CHECK: r0 = p0
7; CHECK-NOT: zxtb(p
Krzysztof Parzyszek33fd0bb2017-02-28 23:27:33 +00008; CHECK-NOT: and(p
9; CHECK-NOT: extract(p
10; CHECK-NOT: extractu(p
Krzysztof Parzyszek04c07962016-08-04 17:56:19 +000011
12target triple = "hexagon"
13
14; Function Attrs: nounwind
15define i32 @fred() local_unnamed_addr #0 {
16entry:
17 %0 = tail call i32 @llvm.hexagon.C4.and.and(i32 undef, i32 undef, i32 undef)
18 ret i32 %0
19}
20
21declare i32 @llvm.hexagon.C4.and.and(i32, i32, i32) #1
22
23attributes #0 = { nounwind "target-cpu"="hexagonv5" }
24attributes #1 = { nounwind readnone }