27 lines · plain
1; Enable Utlilize mask instruction pass only on v66 and above.2; RUN: llc -mv60 -mtriple=hexagon < %s -o /dev/null3 4target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"5target triple = "hexagon"6 7@b = dso_local local_unnamed_addr global i8 0, align 18@a = dso_local local_unnamed_addr global i32 0, align 49 10; Function Attrs: cold nounwind optsize memory(readwrite, argmem: none, inaccessiblemem: none)11define dso_local void @c() local_unnamed_addr {12entry:13 %0 = tail call i32 asm "", "=&r"()14 %and = and i32 %0, 13421772715 %tobool.not = icmp eq i32 %and, 016 br i1 %tobool.not, label %if.end, label %if.then17 18if.then: ; preds = %entry19 %1 = load i8, ptr @b, align 120 %loadedv = zext nneg i8 %1 to i3221 store i32 %loadedv, ptr @a, align 422 br label %if.end23 24if.end: ; preds = %if.then, %entry25 ret void26}27