mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 13:40:30 +00:00
466f9e2f0c
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250542 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
501 B
LLVM
20 lines
501 B
LLVM
; RUN: llc -march=hexagon < %s | FileCheck %s
|
|
; CHECK-LABEL: foo:
|
|
; CHECK: memh(r0+#0){{.*}}={{.*}}#-2
|
|
; Don't use memh(r0+#0)=##65534.
|
|
|
|
target datalayout = "e-m:e-p:32:32-i1:32-i64:64-a:0-v32:32-n16:32"
|
|
target triple = "hexagon"
|
|
|
|
; Function Attrs: nounwind
|
|
define void @foo(i16* nocapture %s) #0 {
|
|
entry:
|
|
%0 = bitcast i16* %s to i8*
|
|
store i8 -2, i8* %0, align 2
|
|
%add.ptr = getelementptr inbounds i8, i8* %0, i32 1
|
|
store i8 -1, i8* %add.ptr, align 1
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nounwind }
|