blob: b614096447eb48048d6b373d8f2c5f1d642d7473 [file] [log] [blame]
; RUN: llc -mtriple=hexagon --combiner-store-merging=false -verify-machineinstrs < %s | FileCheck %s
; CHECK: memh
; Check that store widening merges the two adjacent stores.
target triple = "hexagon"
%struct.type_t = type { i8, i8, [2 x i8] }
define zeroext i8 @foo(ptr nocapture %p) nounwind {
entry:
store i8 0, ptr %p, align 2
%b = getelementptr inbounds %struct.type_t, ptr %p, i32 0, i32 1
%0 = load i8, ptr %b, align 1
store i8 0, ptr %b, align 1
ret i8 %0
}