aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/Generic/pr12507.ll
blob: 80bfecf9841751280219514d07bf3c110a4af617 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
; RUN: llc < %s

; NVPTX failed to lower arg i160, as size > 64
; UNSUPPORTED: target=nvptx{{.*}}

@c = external global i32, align 4

define void @foo(i160 %x) {
entry:
  %cmp.i = icmp ne i160 %x, 340282366920938463463374607431768211456
  %conv.i = zext i1 %cmp.i to i32
  %tobool.i = icmp eq i32 %conv.i, 0
  br i1 %tobool.i, label %if.then.i, label %fn1.exit

if.then.i:
  store i32 0, ptr @c, align 4
  br label %fn1.exit

fn1.exit:
  ret void
}