brintos

brintos / llvm-project-archived public Read only

0
0
Text · 945 B · ea458c1 Raw
29 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-- -x86-asm-syntax=intel | FileCheck %s3 4@G1 = internal global i8 0              ; <ptr> [#uses=1]5@G2 = internal global i8 0              ; <ptr> [#uses=1]6 7define i16 @test1() {8; CHECK-LABEL: test1:9; CHECK:       # %bb.0:10; CHECK-NEXT:    movzx eax, byte ptr [G1]11; CHECK-NEXT:    # kill: def $ax killed $ax killed $eax12; CHECK-NEXT:    ret13        %tmp.0 = load i8, ptr @G1           ; <i8> [#uses=1]14        %tmp.3 = zext i8 %tmp.0 to i16          ; <i16> [#uses=1]15        ret i16 %tmp.316}17 18define i16 @test2() {19; CHECK-LABEL: test2:20; CHECK:       # %bb.0:21; CHECK-NEXT:    movsx eax, byte ptr [G2]22; CHECK-NEXT:    # kill: def $ax killed $ax killed $eax23; CHECK-NEXT:    ret24        %tmp.0 = load i8, ptr @G2           ; <i8> [#uses=1]25        %tmp.3 = sext i8 %tmp.0 to i16          ; <i16> [#uses=1]26        ret i16 %tmp.327}28 29