new testcase for __builtin_prefetch support.
authorChris Lattner <sabre@nondot.org>
Fri, 11 Mar 2005 06:14:23 +0000 (06:14 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 11 Mar 2005 06:14:23 +0000 (06:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20561 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2005-03-11-Prefetch.c [new file with mode: 0644]

diff --git a/test/CFrontend/2005-03-11-Prefetch.c b/test/CFrontend/2005-03-11-Prefetch.c
new file mode 100644 (file)
index 0000000..bf79653
--- /dev/null
@@ -0,0 +1,6 @@
+// RUN: %llvmgcc %s -S -o - | llvm-as | llvm-dis | grep llvm.prefetch
+
+void foo(int *P) {
+  __builtin_prefetch(P);
+  __builtin_prefetch(P, 1);
+}