1# RUN: llvm-mc -triple powerpc64-unknown-unknown -mattr=+modern-aix-as --show-encoding %s | FileCheck -check-prefix=CHECK-BE %s 2# RUN: llvm-mc -triple powerpc64le-unknown-unknown -mattr=+modern-aix-as --show-encoding %s | FileCheck -check-prefix=CHECK-LE %s 3# RUN: llvm-mc -triple powerpc64le-unknown-unknown -mattr=-modern-aix-as --show-encoding %s | FileCheck -check-prefix=CHECK-LE %s 4# RUN: not llvm-mc -triple powerpc64le-unknown-unknown -mattr=+aix --show-encoding %s 2>&1 | FileCheck -check-prefix=CHECK-OLD %s 5# RUN: llvm-mc -triple powerpc-aix-ibm-xcoff -mattr=+modern-aix-as --show-encoding %s 2>&1 | FileCheck -check-prefix=CHECK-BE %s 6# RUN: not llvm-mc -triple powerpc-aix-ibm-xcoff --show-encoding %s 2>&1 | FileCheck -check-prefix=CHECK-OLD %s 7 8# CHECK-BE: mtudscr 2 # encoding: [0x7c,0x43,0x03,0xa6] 9# CHECK-LE: mtudscr 2 # encoding: [0xa6,0x03,0x43,0x7c] 10# CHECK-OLD: instruction use requires an option to be enabled 11 mtudscr 2 12# CHECK-BE: mfudscr 2 # encoding: [0x7c,0x43,0x02,0xa6] 13# CHECK-LE: mfudscr 2 # encoding: [0xa6,0x02,0x43,0x7c] 14# CHECK-OLD: instruction use requires an option to be enabled 15 mfudscr 2 16# CHECK-BE: xxspltd 2, 3, 0 # encoding: [0xf0,0x43,0x18,0x50] 17# CHECK-LE: xxspltd 2, 3, 0 # encoding: [0x50,0x18,0x43,0xf0] 18# CHECK-OLD: instruction use requires an option to be enabled 19 xxspltd 2, 3, 0 20 21# CHECK-BE: xxspltd 2, 3, 1 # encoding: [0xf0,0x43,0x1b,0x50] 22# CHECK-LE: xxspltd 2, 3, 1 # encoding: [0x50,0x1b,0x43,0xf0] 23# CHECK-OLD: instruction use requires an option to be enabled 24 xxspltd 2, 3, 1 25