File: int-cmp-54.ll

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,538; xml: 953; cs: 573; fortran: 567
file content (20 lines) | stat: -rw-r--r-- 713 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; Check that custom handling of SETCC does not crash
;
; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13

@g_39 = external global [4 x i8], align 2
@g_2166 = external global <{ i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32 }>, align 8

; Function Attrs: nounwind
define void @main() local_unnamed_addr #0 {
  %1 = load volatile i88, i88* bitcast (<{ i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32 }>* @g_2166 to i88*), align 8
  %2 = lshr i88 %1, 87
  %3 = trunc i88 %2 to i64
  %4 = icmp sgt i64 %3, 9293
  %5 = zext i1 %4 to i32
  %6 = lshr i32 %5, 0
  %7 = shl i32 %6, 6
  %8 = trunc i32 %7 to i8
  store i8 %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @g_39, i64 0, i64 1), align 1
  unreachable
}