File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -17958,7 +17958,8 @@ bool ARMTargetLowering::isCheapToSpeculateCtlz() const {
17958
17958
}
17959
17959
17960
17960
bool ARMTargetLowering::shouldExpandShift(SelectionDAG &DAG, SDNode *N) const {
17961
- return !Subtarget->hasMinSize() || Subtarget->isTargetWindows();
17961
+ return !Subtarget->hasMinSize() || Subtarget->isTargetWindows() ||
17962
+ Subtarget->isTargetDarwin();
17962
17963
}
17963
17964
17964
17965
Value *ARMTargetLowering::emitLoadLinked(IRBuilder<> &Builder, Value *Addr,
Original file line number Diff line number Diff line change 1
1
; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
2
2
; RUN: llc -mtriple=thumbv7-windows %s -o - | FileCheck %s -check-prefix=CHECK-WIN
3
+ ; RUN: llc < %s -mtriple=aarch64-apple-darwin | FileCheck %s -check-prefix=CHECK-DARWIN
3
4
4
5
; The Windows runtime doesn't have these.
5
6
; CHECK-WIN-NOT: __ashldi3
6
7
; CHECK-WIN-NOT: __ashrdi3
7
8
; CHECK-WIN-NOT: __lshrdi3
8
9
10
+ ; Darwin compiler-rt excludes these.
11
+ ; CHECK-DARWIN-NOT: __ashlti3
12
+ ; CHECK-DARWIN-NOT: __ashrti3
13
+
9
14
define i64 @f0 (i64 %val , i64 %amt ) minsize optsize {
10
15
; CHECK-LABEL: f0:
11
16
; CHECK: bl __aeabi_llsl
You can’t perform that action at this time.
0 commit comments