1
; RUN: llc -o - %s -verify-machineinstrs
2
; This used to crash when coalescing a regclass like GR16 which did not support
3
; the sub_8bit_hi subregister with a class like GR16_ABCD that did.
4
target triple = "x86_64-apple-macosx10.10.0"
6
define void @test() #0 {
8
br i1 undef, label %loop, label %for.end597
11
%0 = load i16, i16* null, align 4
12
%1 = load i16, i16* undef, align 4
14
%or2 = trunc i16 %or1 to i8
15
store i8 %or2, i8* undef, align 4
18
%or4 = trunc i16 %or3 to i8
19
store i8 %or4, i8* undef, align 1
20
%3 = load i32, i32* undef, align 4
21
%4 = load i32, i32* undef, align 4
23
store i32 %or5, i32* undef, align 4
24
store i32 0, i32* undef, align 4