Index: test/NaCl/Bitcode/implicit-datalayout.ll |
diff --git a/test/NaCl/Bitcode/implicit-datalayout.ll b/test/NaCl/Bitcode/implicit-datalayout.ll |
new file mode 100644 |
index 0000000000000000000000000000000000000000..33c3de65e8d7a78c3fe9465a85c4317aca24ac6e |
--- /dev/null |
+++ b/test/NaCl/Bitcode/implicit-datalayout.ll |
@@ -0,0 +1,9 @@ |
+; RUN: llvm-as < %s | pnacl-freeze | pnacl-thaw - | llvm-dis - | FileCheck %s |
+ |
+; The "datalayout" field is considered to be implicit in the pexe. It |
+; is not stored in the pexe; the reader adds it implicitly. |
+; |
+; The most important parts of the datalayout for PNaCl are the pointer |
+; size and the endianness ("e" for little endian). |
+ |
+; CHECK: target datalayout = "e-{{.*}}p:32:32-{{.*}}" |