source: trunk/lib_ir/test_link.cpp @ 4005

Last change on this file since 4005 was 3909, checked in by linmengl, 5 years ago

initial commit of lib_ir

File size: 534 bytes
Line 
1/* This file is used to make sure the build system working properly.
2 * We simply use an IR function to fill v4i32 as <i32 x, i32 x, i32 x, i32 x>
3 */
4#include "utility.h"
5#include <iostream>
6using namespace std;
7
8extern "C" {
9  void test_link(SIMD_type *a, int x);
10}
11
12int main(int argc, char **argv)
13{
14  SIMD_type a;
15  if (argc != 2) {
16    cout << "Wrong number of arguments!" << endl << "RUN: [exec] <number> \n";
17    return 0;
18  }
19
20  int x = atoi(argv[1]);
21  test_link(&a, x);
22  cout << Store2String(a, 1) << endl;
23
24  return 0;
25}
26
Note: See TracBrowser for help on using the repository browser.