• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -march=hexagon < %s | FileCheck %s
2; We shouldn't see a 32-bit expansion of -120, just the uint8 value.
3; CHECK: #136
4define i32 @foo([4 x i8]* %ptr) {
5entry:
6  %msb = getelementptr inbounds [4 x i8], [4 x i8]* %ptr, i32 0, i32 3
7  %lsb = getelementptr inbounds [4 x i8], [4 x i8]* %ptr, i32 0, i32 2
8  store i8 0, i8* %msb
9  store i8 -120, i8* %lsb, align 2
10  ret i32 0
11}
12