1; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | grep movzx | count 1 2; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | grep movsx | count 1 3 4@G1 = internal global i8 0 ; <i8*> [#uses=1] 5@G2 = internal global i8 0 ; <i8*> [#uses=1] 6 7define i16 @test1() { 8 %tmp.0 = load i8* @G1 ; <i8> [#uses=1] 9 %tmp.3 = zext i8 %tmp.0 to i16 ; <i16> [#uses=1] 10 ret i16 %tmp.3 11} 12 13define i16 @test2() { 14 %tmp.0 = load i8* @G2 ; <i8> [#uses=1] 15 %tmp.3 = sext i8 %tmp.0 to i16 ; <i16> [#uses=1] 16 ret i16 %tmp.3 17} 18 19