brintos

brintos / llvm-project-archived public Read only

0
0
Text · 411 B · b996507 Raw
20 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2; CHECK: cmp3; Make sure that the result is not a compile-time constant.4 5define i64 @foo(i32 %x) {6entry:7  %c = icmp slt i32 %x, 178  br i1 %c, label %b1, label %b29b1:10  br label %b211b2:12  %p = phi i32 [ 1, %entry ], [ 0, %b1 ]13  %q = sub i32 %x, %x14  %y = zext i32 %q to i6415  %u = shl i64 %y, 3216  %v = zext i32 %p to i6417  %w = or i64 %u, %v18  ret i64 %w19}20