brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 1108625 Raw
42 lines · plain
1@ RUN: not llvm-mc -triple=armv7-unknown-linux-gnueabi < %s 2> %t2@ RUN: FileCheck < %t %s3 4@ Check the diagnostics for .vsave directive5 6@ .vsave directive should always come after .fnstart directive7@ and before .handlerdata directive.8 9	.syntax unified10	.text11 12@-------------------------------------------------------------------------------13@ TEST1: .vsave before .fnstart14@-------------------------------------------------------------------------------15	.globl	func116	.align	217	.type	func1,%function18	.vsave	{d0, d1, d2, d3}19@ CHECK: error: .fnstart must precede .save or .vsave directives20@ CHECK:        .vsave {d0, d1, d2, d3}21@ CHECK:        ^22	.fnstart23func1:24	.fnend25 26 27 28@-------------------------------------------------------------------------------29@ TEST2: .vsave after .handlerdata30@-------------------------------------------------------------------------------31	.globl	func232	.align	233	.type	func2,%function34	.fnstart35func2:36	.handlerdata37	.vsave	{d0, d1, d2, d3}38@ CHECK: error: .save or .vsave must precede .handlerdata directive39@ CHECK:        .vsave {d0, d1, d2, d3}40@ CHECK:        ^41	.fnend42