diff options
Diffstat (limited to 'llvm/test/Assembler/2004-03-07-FunctionAddressAlignment.llx')
-rw-r--r-- | llvm/test/Assembler/2004-03-07-FunctionAddressAlignment.llx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/Assembler/2004-03-07-FunctionAddressAlignment.llx b/llvm/test/Assembler/2004-03-07-FunctionAddressAlignment.llx new file mode 100644 index 00000000000..909585cddf1 --- /dev/null +++ b/llvm/test/Assembler/2004-03-07-FunctionAddressAlignment.llx @@ -0,0 +1,15 @@ +; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep cast +; All of these should be eliminable + + +int %foo() { + ret int and (int cast (int()* %foo to int), int 1) +} + +int %foo2() { + ret int and (int 1, int cast (int()* %foo2 to int)) +} + +bool %foo3() { + ret bool cast (bool()* %foo3 to bool) +} |