xref: /llvm-project/llvm/test/MC/PowerPC/ppc32-ba.s (revision 2fd7657b6609454af7adb75765d164ec7d1bb80b)
1# RUN: llvm-mc -triple powerpc-unknown-unknown --show-encoding %s | FileCheck %s
2
3# Check that large and/or negative immediates in 32-bit mode are accepted.
4
5# CHECK:      ba 0xfe000000  # encoding: [0x4a,0x00,0x00,0x02]
6# CHECK-NEXT: ba 0xfe000000  # encoding: [0x4a,0x00,0x00,0x02]
7# CHECK-NEXT: ba 0xfffffc00  # encoding: [0x4b,0xff,0xfc,0x02]
8         ba 0xfe000000
9         ba (-33554432)
10	 ba (-1024)
11