1 // See if the replaced operation is effectively killed or not
3 static int kill_add(int a
, int b
)
8 static int kill_scast(short a
)
10 return ((int) a
) && 0;
13 static int kill_ucast(unsigned char a
)
15 return ((int) a
) && 0;
18 static int kill_pcast(int *a
)
20 return ((void*) a
) && 0;
23 static int kill_fcast(double a
)
25 return ((int) a
) && 0;
28 static int kill_select(int a
)
30 return (a
? 1 : 0) && 0;
33 static int kill_load(int *a
)
38 static int kill_store(int *a
)
44 * check-name: kill-replaced-insn
45 * check-command: test-linearize $file
48 * check-output-excludes: add\\.
49 * check-output-excludes: scast\\.
50 * check-output-excludes: \\<cast\\.
51 * check-output-excludes: ptrcast\\.
52 * check-output-excludes: fpcast\\.
53 * check-output-excludes: sel\\.