2018-03-07 18:27:18 +01:00
|
|
|
; RUN: llc -march=hexagon -O0 -hexagon-align-loads=0 < %s | FileCheck %s
|
2017-07-17 17:45:45 +02:00
|
|
|
|
|
|
|
; CHECK-LABEL: danny:
|
2020-09-22 14:55:54 +02:00
|
|
|
; CHECK: r1 = r0
|
|
|
|
; CHECK-DAG: [[T0:r[0-9]+]] = memuh(r1+#0)
|
|
|
|
; CHECK-DAG: [[T1:r[0-9]+]] = memuh(r1+#2)
|
|
|
|
; CHECK: r2 |= asl([[T1]],#16)
|
|
|
|
; CHECK-DAG: [[T2:r[0-9]+]] = memuh(r1+#4)
|
|
|
|
; CHECK-DAG: [[T3:r[0-9]+]] = memuh(r1+#6)
|
|
|
|
; CHECK: r1 |= asl([[T3]],#16)
|
2017-07-17 17:45:45 +02:00
|
|
|
define <4 x i16> @danny(<4 x i16>* %p) {
|
|
|
|
%t0 = load <4 x i16>, <4 x i16>* %p, align 2
|
|
|
|
ret <4 x i16> %t0
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK-LABEL: sammy:
|
|
|
|
; CHECK-DAG: [[T0:r[0-9]+]] = memw(r0+#0)
|
2020-09-22 14:55:54 +02:00
|
|
|
; CHECK-DAG: r1 = memw(r0+#4)
|
|
|
|
; CHECK: r0 = [[T0]]
|
2017-07-17 17:45:45 +02:00
|
|
|
define <4 x i16> @sammy(<4 x i16>* %p) {
|
|
|
|
%t0 = load <4 x i16>, <4 x i16>* %p, align 4
|
|
|
|
ret <4 x i16> %t0
|
|
|
|
}
|