Fix generation of 'isa' and 'discriminator' keywords.
[oota-llvm.git] / test / MC / AsmParser / directive_loc.s
index 700a32ca389fa07579dd320d52111c4e38f687bd..5a24ae97463d9115aef0a61019b67766540d23db 100644 (file)
@@ -1,9 +1,18 @@
-# RUN: llvm-mc -triple i386-unknown-unknown %s
-# FIXME: Actually test the output.
+# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s -check-prefix=FILE
+# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s -check-prefix=BASIC-LOC-1
+# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s -check-prefix=BASIC-LOC-2
+# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s -check-prefix=DISCRIMINATOR
+# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s -check-prefix=ISA
 
         .file 1 "hello"
+# FILE: .file 1 "hello"
         .loc 1
         .loc 1 2
+# BASIC-LOC-1: .loc 1 2 0
         .loc 1 2 3
+# BASIC-LOC-2: .loc 1 2 3
         .loc 1 2 discriminator 1
+# DISCRIMINATOR: 1 2 0 discriminator 1
+        .loc 1 2 0 isa 3
+# ISA: 1 2 0 isa 3
         .loc 1 0