34 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2 3; This test checks that S2_tstbit_i instruction is generated4; and it does not assert.5 6; CHECK: p{{[0-9]+}} = tstbit7 8 9target triple = "hexagon-unknown-unknown-elf"10 11%struct.hlist_node.45.966.3115.3729.4036.4650.4957.6492.6799.7413.7720.9562.10790.11097.11404.11711.14474.17192 = type { ptr, ptr }12 13@.str.8 = external dso_local unnamed_addr constant [5 x i8], align 114 15declare dso_local void @panic(ptr, ...) local_unnamed_addr16 17define dso_local fastcc void @elv_rqhash_find(ptr %p) unnamed_addr {18entry:19 %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 %p, i32 -520 %0 = load i64, ptr %cmd_flags, align 821 %1 = and i64 %0, 429496729622 %tobool10 = icmp eq i64 %1, 023 br i1 %tobool10, label %do.body11, label %do.end1424 25do.body11: ; preds = %entry26 tail call void (ptr, ...) @panic(ptr @.str.8) #127 unreachable28 29do.end14: ; preds = %entry30 %and.i = and i64 %0, -429496729731 store i64 %and.i, ptr %cmd_flags, align 832 ret void33}34