File: 64bit_tstbit.ll

package info (click to toggle)
llvm-toolchain-16 1%3A16.0.6-15~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,634,792 kB
  • sloc: cpp: 6,179,261; ansic: 1,216,205; asm: 741,319; python: 196,614; objc: 75,325; f90: 49,640; lisp: 32,396; pascal: 12,286; sh: 9,394; perl: 7,442; ml: 5,494; awk: 3,523; makefile: 2,723; javascript: 1,206; xml: 886; fortran: 581; cs: 573
file content (33 lines) | stat: -rw-r--r-- 1,165 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
; RUN: llc -march=hexagon  < %s | FileCheck %s

; This test checks that S2_tstbit_i instruction is generated
; and it does not assert.

; CHECK: p{{[0-9]+}} = tstbit


target triple = "hexagon-unknown-unknown-elf"

%struct.hlist_node.45.966.3115.3729.4036.4650.4957.6492.6799.7413.7720.9562.10790.11097.11404.11711.14474.17192 = type { ptr, ptr }

@.str.8 = external dso_local unnamed_addr constant [5 x i8], align 1

declare dso_local void @panic(ptr, ...) local_unnamed_addr

define dso_local fastcc void @elv_rqhash_find() unnamed_addr {
entry:
  %cmd_flags = getelementptr inbounds %struct.hlist_node.45.966.3115.3729.4036.4650.4957.6492.6799.7413.7720.9562.10790.11097.11404.11711.14474.17192, ptr null, i32 -5
  %0 = load i64, ptr %cmd_flags, align 8
  %1 = and i64 %0, 4294967296
  %tobool10 = icmp eq i64 %1, 0
  br i1 %tobool10, label %do.body11, label %do.end14

do.body11:                                        ; preds = %entry
  tail call void (ptr, ...) @panic(ptr @.str.8) #1
  unreachable

do.end14:                                         ; preds = %entry
  %and.i = and i64 %0, -4294967297
  store i64 %and.i, ptr %cmd_flags, align 8
  ret void
}