1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=x86_64-linux-gnu -global-isel -verify-machineinstrs < %s -o - | FileCheck %s --check-prefix=ALL
11 define i8 @add_undef_i8(i8 %a) {
12 ; ALL-LABEL: add_undef_i8:
14 ; ALL-NEXT: movl %edi, %eax
15 ; ALL-NEXT: addb %al, %al
16 ; ALL-NEXT: # kill: def $al killed $al killed $eax
22 define i16 @add_undef_i16(i16 %a) {
23 ; ALL-LABEL: add_undef_i16:
25 ; ALL-NEXT: movl %edi, %eax
26 ; ALL-NEXT: addw %ax, %ax
27 ; ALL-NEXT: # kill: def $ax killed $ax killed $eax
29 %r = add i16 %a, undef
33 define i16 @add_undef_i16_commute(i16 %a) {
34 ; ALL-LABEL: add_undef_i16_commute:
36 ; ALL-NEXT: addw %di, %ax
38 %r = add i16 undef, %a
42 define i32 @add_undef_i32(i32 %a) {
43 ; ALL-LABEL: add_undef_i32:
45 ; ALL-NEXT: movl %edi, %eax
46 ; ALL-NEXT: addl %eax, %eax
48 %r = add i32 %a, undef
52 define float @test3() {
59 define float @test4(float %a) {
62 ; ALL-NEXT: addss %xmm0, %xmm0
64 %r = fadd float %a, undef