llvm-project/llvm/test/CodeGen/AVR/global-aliases.ll
Fangrui Song 28bda77843
Introduce MCAsmInfo::UsesSetToEquateSymbol and prefer = to .set
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
2025-06-11 22:19:31 -07:00

19 lines
518 B
LLVM

; RUN: llc < %s -mtriple=avr -mcpu=atxmega384c3 | FileCheck %s --check-prefixes=MEGA
; RUN: llc < %s -mtriple=avr -mcpu=attiny40 | FileCheck %s --check-prefixes=TINY
; MEGA: __tmp_reg__ = 0
; MEGA: __zero_reg__ = 1
; MEGA: __SREG__ = 63
; MEGA: __SP_H__ = 62
; MEGA: __SP_L__ = 61
; MEGA: __EIND__ = 60
; MEGA: __RAMPZ__ = 59
; TINY: __tmp_reg__ = 16
; TINY: __zero_reg__ = 17
; TINY: __SREG__ = 63
; TINY-NOT: __SP_H__ = 62
; TINY: __SP_L__ = 61
; TINY-NOT: __EIND__ = 60
; TINY-NOT: __RAMPZ__ = 59