
Introduce MCAsmInfo::UsesSetToEquateSymbol to control the preferred syntax for symbol equating. We now favor the more readable and common `symbol = expression` syntax over `.set`. This aligns with pre- https://reviews.llvm.org/D44256 behavior. On Apple platforms, this resolves a clang -S vs -c behavior difference (resolves #104623). For targets whose = support is unconfirmed, UsesSetToEquateSymbol is set to false. This also minimizes test updates. Pull Request: https://github.com/llvm/llvm-project/pull/142289
17 lines
360 B
LLVM
17 lines
360 B
LLVM
; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s
|
|
|
|
@X = constant {i8, i8 } { i8 0, i8 0 }
|
|
@XA = alias i8, getelementptr inbounds ({ i8, i8 }, ptr @X, i32 0, i32 1)
|
|
|
|
define void @f(ptr %p) align 2 {
|
|
entry:
|
|
store ptr @XA, ptr %p, align 4
|
|
ret void
|
|
}
|
|
|
|
; CHECK: f:
|
|
; CHECK: ldr r{{.*}}, [[L:.*]]
|
|
; CHECK: [[L]]:
|
|
; CHECK-NEXT: .long XA
|
|
; CHECK: XA = X+1
|