
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
25 lines
612 B
LLVM
25 lines
612 B
LLVM
; RUN: llc < %s -mtriple=powerpc-unknown-linux | FileCheck %s
|
|
; RUN: llc < %s -mtriple=powerpc64-unknown-linux | FileCheck %s
|
|
; RUN: llc < %s -mtriple=powerpc64le-unknown-linux | FileCheck %s
|
|
|
|
; CHECK: .Li8 =
|
|
; CHECK-NEXT: .size .Li8, 1
|
|
@i8 = private constant i8 42
|
|
|
|
; CHECK: .Li16 =
|
|
; CHECK-NEXT: .size .Li16, 2
|
|
@i16 = private constant i16 42
|
|
|
|
; CHECK: .Li32 =
|
|
; CHECK-NEXT: .size .Li32, 4
|
|
@i32 = private constant i32 42
|
|
|
|
; CHECK: .Li64 =
|
|
; CHECK-NEXT: .size .Li64, 8
|
|
@i64 = private constant i64 42
|
|
|
|
; CHECK: .Li128 =
|
|
; CHECK-NEXT: .size .Li128, 16
|
|
@i128 = private constant i128 42
|
|
|