brintos

brintos / llvm-project-archived public Read only

0
0
Text · 408 B · b6ff9c0 Raw
18 lines · plain
1; RUN: llc -O2 -mtriple=hexagon < %s | FileCheck %s2 3define i32 @foo(i32 %x) {4  %p = icmp eq i32 %x, 05  br i1 %p, label %zero, label %nonzero6nonzero:7  %v1 = add i32 %x, 18  %c = icmp eq i32 %x, %v19; This branch will be rewritten by HCP.  A bug would cause both branches to10; go away, leaving no path to "ret -1".11  br i1 %c, label %zero, label %other12zero:13  ret i32 014other:15; CHECK: -116  ret i32 -117}18