brintos

brintos / llvm-project-archived public Read only

0
0
Text · 806 B · 5115a06 Raw
30 lines · plain
1; RUN: llc -o - %s -verify-machineinstrs2; This used to crash when coalescing a regclass like GR16 which did not support3; the sub_8bit_hi subregister with a class like GR16_ABCD that did.4target triple = "x86_64-apple-macosx10.10.0"5 6define void @test(i1 %arg) #0 {7entry:8  br i1 %arg, label %loop, label %for.end5979 10loop:11  %0 = load i16, ptr null, align 412  %1 = load i16, ptr undef, align 413  %or1 = or i16 %1, %014  %or2 = trunc i16 %or1 to i815  store i8 %or2, ptr undef, align 416  %2 = or i16 %1, %017  %or3 = lshr i16 %2, 818  %or4 = trunc i16 %or3 to i819  store i8 %or4, ptr undef, align 120  %3 = load i32, ptr undef, align 421  %4 = load i32, ptr undef, align 422  %or5 = or i32 %4, %323  store i32 %or5, ptr undef, align 424  store i32 0, ptr undef, align 425  br label %loop26 27for.end597:28  ret void29}30