blob: 5cdf250aead01b7f783870b5ee037ad00f6f4697 [file] [log] [blame]
; RUN: llc -march=hexagon < %s | FileCheck %s
; We shouldn't see a 32-bit expansion of -120, just the uint8 value.
; CHECK: #136
define i32 @foo(ptr %ptr) {
entry:
%msb = getelementptr inbounds [4 x i8], ptr %ptr, i32 0, i32 3
%lsb = getelementptr inbounds [4 x i8], ptr %ptr, i32 0, i32 2
store i8 0, ptr %msb
store i8 -120, ptr %lsb, align 2
ret i32 0
}