xref: /llvm-project/llvm/test/CodeGen/PowerPC/lha.ll (revision 427fb35192f1f7bb694a5910b05abc5925a798b2)
1; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep lha
2
3define i32 @test(ptr %a) {
4        %tmp.1 = load i16, ptr %a           ; <i16> [#uses=1]
5        %tmp.2 = sext i16 %tmp.1 to i32         ; <i32> [#uses=1]
6        ret i32 %tmp.2
7}
8
9