brintos

brintos / llvm-project-archived public Read only

0
0
Text · 694 B · c385f2f Raw
23 lines · plain
1; Test that the backend does not mess up the I/R in case of a use of an undef2; register. This typically happens while expanding a pseudo or otherwise3; replacing an instruction for another.4;5; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 -verify-machineinstrs | FileCheck %s6 7; LLCRMux8define void @f1(ptr) {9; CHECK-LABEL: f1:10; CHECK-NOT: *** Bad machine code: Using an undefined physical register ***11BB:12  %L5 = load i8, ptr %013  %B9 = lshr i8 %L5, -114  br label %CF15 16CF:                                               ; preds = %CF, %BB17  %Cmp25 = icmp ne i8 27, %B918  br i1 %Cmp25, label %CF, label %CF3419 20CF34:                                             ; preds = %CF21  ret void22}23