linux-packaging-mono/external/llvm/test/CodeGen/PowerPC/2007-01-04-ArgExtension.ll
Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +00:00

11 lines
398 B
LLVM

; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep extsb
; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep extsh
define i32 @p1(i8 %c, i16 %s) {
entry:
%tmp = sext i8 %c to i32 ; <i32> [#uses=1]
%tmp1 = sext i16 %s to i32 ; <i32> [#uses=1]
%tmp2 = add i32 %tmp1, %tmp ; <i32> [#uses=1]
ret i32 %tmp2
}