blob: 1474c516f535ff47da8f854faa05d3647828a719 [file] [log] [blame]
Chris Lattner00950542001-06-06 20:29:01 +00001#!/bin/sh
2# test that every step outputs something that is consumable by
3# another step
4
5rm -f test.bc.temp[12]
6
Chris Lattnerf074cfc2001-09-07 22:58:50 +00007LD_LIBRARY_PATH=../lib/Debug
Chris Lattner00950542001-06-06 20:29:01 +00008export LD_LIBRARY_PATH
9
Chris Lattnerf074cfc2001-09-07 22:58:50 +000010AS=../tools/Debug/as
11DIS=../tools/Debug/dis
12export AS
13export DIS
14
15
Chris Lattner00950542001-06-06 20:29:01 +000016# Two full cycles are needed for bitwise stability
17
Chris Lattnerf074cfc2001-09-07 22:58:50 +000018$AS < $1 > $1.bc.1 || exit 1
19$DIS < $1.bc.1 > $1.ll.1 || exit 2
20$AS < $1.ll.1 > $1.bc.2 || exit 3
21$DIS < $1.bc.2 > $1.ll.2 || exit 4
Chris Lattner00950542001-06-06 20:29:01 +000022
23diff $1.ll.[12] || exit 7
Chris Lattner8ce06692001-07-26 16:30:18 +000024
25# FIXME: When we sort things correctly and deterministically, we can reenable this
26#diff $1.bc.[12] || exit 8
Chris Lattner00950542001-06-06 20:29:01 +000027
28rm $1.[bl][cl].[12]
29